<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<table border="1">
    <a th:href="@{/toadd}">添加</a>
    <tr>
        <td>编号</td>
        <td>姓名</td>
        <td>性别</td>
        <td>密码</td>
        <td>年龄</td>
        <td>手机号</td>
        <td>操作</td>
    </tr>
    <tr th:each="user:${list}">
        <td th:text="${user.id}">编号</td>
        <td th:text="${user.name}">姓名</td>
        <td th:text="${user.gender}">性别</td>
        <td th:text="${user.password}">密码</td>
        <td th:text="${user.age}">年龄</td>
        <td th:text="${user.tel}">手机号</td>
        <td>
            <a th:href="@{/findById(id=${user.id})}">修改</a>
            <a th:href="@{/del(id=${user.id})}">删除</a>
        </td>
    </tr>
</table>
</body>
</html>